package com.gbq.qimo.mapper;

import com.gbq.qimo.pojo.Student;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    Student findOneStudent(String stuId, String password);

    List<Student> findAllStudents();

    int addOneStudent(Student student);

    Student findStudentById(Integer id);

    Integer updateStudent(Student student);

    int deleteStudentById(int id);

    int findTotalCount(Map<String, String[]> condition);

    List<Student> findByPage(int start, int row, Map<String, String[]> condition);


    Student findByUsername(String username);

    int register(String username,String password);
}
